import request from '../../utils/request';

/**
 * 创建项目
 * @param {*} project 
 */
export function addProject(param){
    return request('/design/project/add', {
        method: 'post',
        data: param
    });
}
/**
 * 删除项目
 * @param {*} project 
 */
export function deleteProject(param){
    return request('/design/project/delete', {
        method: 'post',
        data: param
    });
}
/**
 * 获取项目
 * @param {*} getProjects 
 */
export function getProjects(params){
    
    return request('/design/project/list', {
        method: 'post',
        data: params
    });
}

/**
 * 修改项目
 * @param {*} project 
 */
export function updateProject(param){
    return request('/design/project/update', {
        method: 'post',
        data: param
    });
}
/**
 * 项目详情
 * @param {*} project 
 */
export function getProjectDetail(param){
    return request('/design/project/getProjectById', {
        method: 'post',
        data: param
    });
}


